package com.today.cjl.sqlGen

import com.today.cjl.sqlGen.enums.ArgsType._
import com.today.cjl.sqlGen.impl.{GenWithArgs, GenWithIdAndArgs}


/**
  * Created by cjl at 2018-09-03
  * Description: 
  * Changed: 
  */
object AppMain {

  def main(args: Array[String]): Unit = {
    val commonArgs = Map(
      "buying_price" -> 5.6311,
      "input_tax" -> 0.0300,
      "logistics_price" -> 5.6311,
      "logistics_output_tax" -> 0.1600
    )
    //GenWithIdAndArgs.gen(commonArgs)

    val typeMap: Map[String, ArgsType] = Map(
      "id" -> LONG,
      //"amount1" -> DOUBLE,
      //"amount2" -> DOUBLE,
      //"s1" -> DOUBLE,
      //"s2" -> DOUBLE,
      //"s3" -> DOUBLE,
      //"s4" -> DOUBLE,
      //"s5" -> DOUBLE,
      //"s6" -> DOUBLE
      GenWithArgs.ARG_TYPE_DEFAULT -> DOUBLE
    )
    GenWithArgs.gen(typeMap)

  }
}
